package com.zhong.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * name : 指定调用rest接口所对应的服务名
 * path : 指定调用rest接口所在的controller指定的@RequestMapping("/stock")
 */
@FeignClient(name = "stock-service", path = "stock")
public interface StockFeignService {

    // 声明需要调用的rest接口对应的方法  直接复制
    @RequestMapping("/reduct")
    String reduct();

}
